#ifndef _ITEMS_H_
#define _ITEMS_H_

#define MAX_ITEMS 32

typedef struct
{
	unsigned short x;
	unsigned short y;
	unsigned char code;
}__attribute__((__packed__)) item_t;

extern item_t items[MAX_ITEMS];
extern int itemcount;

void readitems();
void drawitems();
void inititems();

const char *getitemname(int code);

int itemclicked(int x, int y);
void dragitem(int id, int x, int y);

#endif